package com.itcm.manage.controller;

import com.itcm.manage.common.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author sky
 * @Site cmtianxie163.com 2020/6/17 23:48
 */
@RestController
@RequestMapping("/manage/hello")
@CrossOrigin
public class HelloController {
    @GetMapping("/demo")
    @ApiOperation("测试token验证")
    public R demo(){
        return R.ok().data("msg","欢迎来到CM后端管理框架");
    }
}
